"use strict"
import Dict from "./main/index.js"

let instance  = {}

function install(Vue, config) {
  instance = new Dict(Vue, config)
  Vue.prototype.$getDictList = instance.getDictList
  Vue.prototype.$getDictLabel = instance.getDictLabel
  Vue.prototype.$addDictItme = instance.addDictItme
}

function create(Vue, config) {
  return new Dict(Vue, config)
}

export default {
  create, install
};